<?php
$curr_page =3;
include 'head.php';
if(isset($_GET['pro_id']))
{
	$id = $_GET['pro_id'];
}
 $sql = "select a.id,a.name,a.model,a.type_id,a.price,a.path,a.remark,a.content,a.dates,a.ishot,a.isnews from product as a where a.flag =1 and a.id=".$_GET['pro_id'];
	
 $result = mysql_query($sql);
	$row = mysql_fetch_array($result);

	
 $sql = "select * from download where id = {$_GET['down_id']}";
 $ret = mysql_query($sql);
    $row2 = mysql_fetch_array($ret);
?>
<head>
<link href="1.css" rel="stylesheet" type="text/css" />
</head>

		<!--页面-->
		<div id="ym1" style="background:#FFFFFF;">
				<!--主要内容-->
				<div style="background:#FFFFFF; width:960px;  padding-bottom:16px;">
					
						<!--内容左-->
						<div  style="width:648px; float: left; margin-left:17px;">
							
							<div class="right" style="background: url(images/xw_nrt7.jpg); margin-top:16px;width:648px; height:33px; float: left;">
								<h1 style="text-indent:16px; margin-top:10px;">相关下载</h1>
							</div>
							
							
							
							<!--列表-->
							<div style=" border:1px solid #c8c8c8; float:left; margin-top:-1px; width:646px; padding-bottom:20px;">
								
								<!--标题详情-->
								<div>
									<div style="width:210px; float:left; margin:15px 0 0 15px;"><img style="width:204px;height:147px;" src="<?php echo $row['path']?>"/></div>
									<div style=" width:350px;  float:right;  margin:0; ">
									     <p>名称: <?php echo $row2['name'];?></p>
									     <p>产品型号: <?php echo $row['model'];?></p>
									     <p>产品名称: <?php echo $row['name'];?></p>
									     <p>更新日期: <?php echo $row2['dates'];?></p>
									     <p>版本号: <?php echo $row2['remark'];?></p>
									     <p>大小: <?php echo $row2['size'];?></p>
									     <p><a href="<?php echo $row2['url'];?>"><img src="images/dwl.jpg" /></a></p>
								    </div>
								    <div style="clear:both;"></div>
								</div>
								<div style="clear:both;"></div>
								<div style="padding:15px;"><?php echo nl2br($row2['description']);?></div>
								<!--标题详情-->

                    		</div>
							<!--列表-->
			
                         </div>
					   	<!--内容左-->
								
								<!--内容右-->
								<div style=" float:left;margin-left:15px; width:263px;">
									
									<div style="background:none; width:264px; height:321px;margin-top:15px; float:left;">
									 <?php
									   $sql = "select * from ad where id = 4";
									   $ret = mysql_query($sql);
									   $rcd = mysql_fetch_array($ret);
									 ?>
									 <a href="<?php echo $rcd['link']?>" target='_blank'><img src="<?php echo $rcd['pic_path'];?>" /></a>
									</div>
								</div>
								
								
								<!--内容右-->
								
						
				<div style="clear:both;"></div>
				</div>
				<!--主要内容-->
				
				
			<div style="clear:both;"></div>
		</div>
		<!--页面-->
		 <?php include 'bottom.php';?>


